//
//  FileModel.h
//  VoiceMusic
//
//  Created by dllo on 15/10/24.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ASIHTTPRequest.h>
#import <UIKit/UIKit.h>
typedef enum {
    Downloading,//下载中
    WillDownload,//等待下载
    StopDownload//停止下载
}DownLoadState;
@interface FileModel : NSObject<NSCoding>

@property(nonatomic,strong)NSString *fileID;
@property(nonatomic,strong)NSString *fileName;
@property(nonatomic,strong)NSString *fileSize;
@property(nonatomic,strong)NSString *sing;

@property(nonatomic,assign)BOOL isFirstReceived;//是否是第一次接受数据，如果是则不累加第一次返回的数据长度，之后变累加
@property(nonatomic,strong)NSString *fileReceivedSize;
@property(nonatomic,strong)NSMutableData *fileReceivedData;//接受的数据
@property(nonatomic,strong)NSString *fileURL;
@property(nonatomic,strong)NSString *time;
@property(nonatomic,strong)NSString *targetPath;
@property(nonatomic,strong)NSString *tempPath;
@property DownLoadState downloadState;
@property(nonatomic, assign)BOOL error;

@end
